package com.pro.service.imple;

import com.pro.mapper.JsExamineMapper;
import com.pro.pojo.*;
import com.pro.service.JsExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YuQing
 * @date 2022/1/11 16:38
 */
@Service
public class JsExamineServiceImple implements JsExamineService {
    @Autowired
    private JsExamineMapper jsExamineMapper;

    //计算审核个数
    @Override
    public Integer getExamineNum(String result, Integer type) {
        return jsExamineMapper.getExamineNum(result, type);
    }
    //修改审核状态
    @Override
    public Boolean updateRecordResult(JsCourseRecord courseRecord) {
        return jsExamineMapper.updateRecordResult(courseRecord);
    }
    //查询课程分类
    @Override
    public List<JsCourseClass> getCourseClass() {
        return jsExamineMapper.getCourseClass();
    }
    //查询课程
    @Override
    public List<JsCourse> getCourses(JsCourse course) {
        return jsExamineMapper.getCourses(course);
    }
    //查询课程详情
    @Override
    public JsCourse getCourseInformation(Integer type, Integer id) {
        return jsExamineMapper.getCourseInformation(type, id);
    }
    //课程高级检索
    @Override
    public List<JsCourse> searchCourse(JsCourse course) {
        return jsExamineMapper.searchCourse(course);
    }
    //修改课程审核状态
    @Override
    public Boolean updateCourseRecord(JsCourse course) {
        return jsExamineMapper.updateCourseRecord(course);
    }
    //查询微圈分类
    @Override
    public List<JsActicleCategroy> getActicleCategroy() {
        return jsExamineMapper.getActicleCategroy();
    }
    //查询微圈
    @Override
    public List<JsMicrocircle> getMicrocircle(JsMicrocircle microcircle) {
        return jsExamineMapper.getMicrocircle(microcircle);
    }
    //查询微圈详情
    @Override
    public JsMicrocircle getMicrocircleInformation(Integer type, Integer id) {
        return jsExamineMapper.getMicrocircleInformation(type, id);
    }
    //修改微圈状态
    @Override
    public Boolean updateMicrocircleDetails(JsMicrocircle microcircle) {
        return jsExamineMapper.updateMicrocircleDetails(microcircle);
    }
    //添加审核日志
    @Override
    public Boolean addAuditLog(JsAuditLog auditLog) {
        return jsExamineMapper.addAuditLog(auditLog);
    }
    //查询审核日志
    @Override
    public List<JsAuditLog> getExamineLog(JsAuditLog auditLog) {
        return jsExamineMapper.getExamineLog(auditLog);
    }
    //删除审核日志
    @Override
    public Boolean deleteAuditLog(Integer id) {
        return jsExamineMapper.deleteAuditLog(id);
    }
}
